<?
if(!MEMBER) header('location: /');
if(POST){
    switch (PARAMS){
        default: profile::update($_POST); break;
        case 'disable': profile::disable($_POST); break;
    }
} else {
    $data->profile = profile::get(array('ID'=>UID));
    $data->TITLE = _('Edit Profile');
    $data->DESCRIPTION = _('Edit Profile');
}
?>